package info.zhoutian.blog.utils;

import info.zhoutian.blog.domain.Result;
import org.omg.CORBA.Object;

/**
 * Created by Administrator on 2018/8/24.
 */
public class ResultUtil {

    public static Result success(Object object){
        Result result = new Result();
        result.setCode(0);
        result.setMessage("OK");
        result.setData(object);
        return result;
    }

    public static Result failere(Integer code,String message){
        Result result = new Result();
        result.setCode(code);
        result.setMessage(message);
        return result;
    }
}
